package com.cn.JUC.utils.case3;

import java.util.function.Function;

/**
 * @Title TODO
 * @Description TODO
 * @Author CAI ZHAI
 * @Date 2021/9/2 9:53
 **/
public class TestFunction{
    public static void main(String[] args) {
        
        System.out.println(testFunction(2,i -> i * 2 + 1));
    }
    
    public static int testFunction(int i, Function<Integer,Integer> function) {
        
        return function.apply(i);
    }

}
